﻿using Shsc.Net.Common.Validator.Attributes;
using Shsc.Net.Common.Validator;
using Shsc.Net.Common.Util;

namespace Shsc.Net.Common.Validator.Validators
{
    /// <summary>
    /// 非空Check
    /// </summary>
    public class RequestValidator : BaseValidator
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="value"></param>
        /// <param name="attribute"></param>
        /// <returns></returns>
        public override bool DoValidate(object value,
            BaseValidationAttribute attribute)
        {
            return CheckUtil.CheckReqired(value);
        }
    }
}
